package com.dfdchem.imd.kaiwu.model;

import java.util.ArrayList;

public class RespList<T> extends Resp<ArrayList<T>> {

    private ArrayList<T> Data;
    private int Code;
    private String Msg;

    private int page;
    private int limit;

    private int recordsTotal;

    public ArrayList<T> getData() {
        return Data;
    }

    public void setData(ArrayList<T> data) {
        Data = data;
    }

    @Override
    public int getCode() {
        if (Code == 20000) {
            return 200;
        }
        return Code;
    }

    @Override
    public void setCode(int code) {
        Code = code;
    }

    @Override
    public String getMsg() {
        return Msg;
    }

    @Override
    public void setMsg(String msg) {
        Msg = msg;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public int getRecordsTotal() {
        return recordsTotal;
    }

    public void setRecordsTotal(int recordsTotal) {
        this.recordsTotal = recordsTotal;
    }
}
